<extend name="base"/>

<block name="extend">
<script type="text/javascript" src="__PUBLIC__/Member/api/js/product.js"></script>
<script language="javascript">$(document).ready(product_obj.product_liucheng);</script> 
</block>

<block name="editor_block">
	<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Member/js/plugin/ckfinder/ckfinder.js"></script>
	<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Member/api/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/Member/api/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/Member/api/ueditor/lang/zh-cn/zh-cn.js"></script>
	<script>	
	var ue = UE.getEditor('editor');
	</script>
</block>

<block name="body">

<div id="news" class="r_con_wrap">
	<form id="liucheng_form" class="r_con_form" >
		<div class="rows">
        	<label>过期时间</label>
        	<span class="input"><input type="text" name="expiredtime" value=<if condition='$processarr.expiredtime eq 0'>0<elseif condition='$processarr.expiredtime eq null' />0<else />{$processarr.expiredtime}</if> onkeyup="value=value.replace(/[^\d]/g,'') "> 注：0为无限期，1~24分别代表过期时间1~24小时</span>
        	<div class="clear"></div>
	    </div>
	    <div class="rows">
        	<label>是否邮寄</label>
        	<span class="input">
        		<select name="ispost">
        			<option value="">--请选择--</option>
        			<option value="0" <eq name="processarr.ispost" value="0">selected</eq>>否</option>
        			<option value="1" <eq name="processarr.ispost" value="1">selected</eq>>是</option>
        		</select>
        	</span>
        	<div class="clear"></div>
	    </div>
        <div class="rows">
        	<label>购物规则</label>
        	<span class="input"><textarea id="editor"  class="myEditor" name="description" >{$processarr.description}</textarea></span>
        	<div class="clear"></div>
	    </div>
        <div class="rows">
	        <label></label>
	        <span class="input"><input type="button" class="btn_green" name="submit_button" value="提交保存" /><a href="{:U('index')}" class="btn_gray">返回</a></span>
	        <div class="clear"></div>
	    </div>
	   <input type="hidden" name="id" value="{$processarr.id}">
	</form>
</div>  
</block>